<template>
  <div class="ggSon">
    <div class="w-100 ib">ggSon</div>
    <el-select @change="getggSon" v-model="value" placeholder="ggSon data">
      <el-option
        v-for="item in ggSonOptions"
        :key="item.value"
        :label="item.label"
        :value="item.value">
      </el-option>
    </el-select>
  </div>
</template>
 
<script>
export default {
  name: '',
  props: {
    ggSonOptions: Array
  },
  data () {
    return {
      // ggSonOptions:[
      //   {value: '选项1', label: 'label1'},
      //   {value: '选项2', label: 'label2'},
      //   {value: '选项3', label: 'label3'}
      // ],
      value: '选项1'
    }
  },
  methods: {
    getggSon(v) {
      console.log('ggSon', v)
      this.$emit('getggSon', v)
    },
  }
}
</script>
 
<style scoped lang="scss">
 
</style>